package stats.web;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import stats.security.services.SecurityService;

@Controller
public class SecurityController {

    private SecurityService securityService;

    public void setSecurityService(SecurityService securityService) {
        this.securityService = securityService;
    }

    @RequestMapping(method = RequestMethod.GET, value = "login")
    public String startLogin() {
        return "login";
    }

    @RequestMapping(method = RequestMethod.POST, value = "login")
    public String tryLogin(@RequestParam("email") String email, @RequestParam("password") String password,
            @RequestParam("rememberMe") boolean rememberMe, HttpSession session) {
        return "login";
    }
}
